﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="nutrient.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
   
    <table style="width: 100%">
        <tr>
            <td align ="right">
              <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Large" 
                    ForeColor="#006699" Text="Nutrient Management"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" HorizontalAlign="Justify" 
                    style="margin-left: 0px" Width="537px" DataKeyNames="nutrientID" 
                    onrowdeleting="GridView1_RowDeleting" 
                    onselectedindexchanging="GridView1_SelectedIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="NutrientID" HeaderText="NutrientID" 
                            Visible="False" />
                        <asp:BoundField DataField="Name" HeaderText="Nutrient Name" 
                            SortExpression="Name">
                        <HeaderStyle BackColor="#339933" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Code" HeaderText="Nutrient Code" 
                            SortExpression="Code">
                        <HeaderStyle BackColor="#339933" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Unit" HeaderText="Nutrient Unit" 
                            SortExpression="Unit">
                        <HeaderStyle BackColor="#339933" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Type" HeaderText="Nutrient Type" 
                            SortExpression="Type">
                        <HeaderStyle BackColor="#339933" />
                        </asp:BoundField>
                        <asp:CommandField ButtonType="Image" 
                            DeleteImageUrl="~/assets/icons/notifications/error.png" ShowDeleteButton="True">
                        <HeaderStyle BackColor="#339933" />
                        </asp:CommandField>
                        <asp:CommandField ButtonType="Image" 
                            SelectImageUrl="~/assets/icons/small_icons_3/media.png" ShowSelectButton="True">
                        <HeaderStyle BackColor="#339933" />
                        </asp:CommandField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                </td>
        </tr>
        <tr>
            <td align="center">
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="gotoAddNew" runat="server" Font-Bold="True" Height="40px" 
                    Text="ADD NEW" Width="100px" onclick="Button1_Click1" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
        </tr>
    </table>
  
</asp:Content>

